//---------------------------------------------------------------------------

#ifndef personal_editH
#define personal_editH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "FIBDataSet.hpp"
#include "pFIBDataSet.hpp"
#include <DB.hpp>
#include <DBCtrls.hpp>
#include <Mask.hpp>
//---------------------------------------------------------------------------
class TFormEditPersonal : public TForm
{
__published:	// IDE-managed Components
        TLabel *Label2;
        TpFIBDataSet *pFIBDataSetPedit;
        TDataSource *DataSource1;
        TDBEdit *DBEditF;
        TDBEdit *DBEditI;
        TDBEdit *DBEditO;
        TButton *Button1;
        TLabel *Label1;
        TLabel *Label3;
        TLabel *Label4;
        TLabel *Label5;
        TDBEdit *DBEditFIO;
        TDBLookupComboBox *DBLookupComboBox1;
        TpFIBDataSet *pFIBDataSetLook;
        TFIBBCDField *pFIBDataSetPeditID;
        TFIBStringField *pFIBDataSetPeditF;
        TFIBStringField *pFIBDataSetPeditI;
        TFIBStringField *pFIBDataSetPeditO;
        TFIBStringField *pFIBDataSetPeditFIO;
        TFIBBCDField *pFIBDataSetPeditID_TYPE_PERSONAL;
        TFIBStringField *pFIBDataSetPeditDRIVER_LIC;
        TFIBSmallIntField *DRIVER_CAT_A;
        TFIBSmallIntField *DRIVER_CAT_B;
        TFIBSmallIntField *DRIVER_CAT_C;
        TFIBSmallIntField *DRIVER_CAT_D;
        TFIBSmallIntField *DRIVER_CAT_E;
        TFIBSmallIntField *DRIVER_CAT_BE;
        TFIBSmallIntField *DRIVER_CAT_CE;
        TFIBSmallIntField *DRIVER_CAT_DE;
        TDataSource *DSLook;
        TLabel *Label6;
        TButton *Button2;
        TCheckBox *CheckBoxA;
        TCheckBox *CheckBoxB;
        TCheckBox *CheckBoxC;
        TCheckBox *CheckBoxD;
        TCheckBox *CheckBoxE;
        TCheckBox *CheckBoxBE;
        TCheckBox *CheckBoxCE;
        TCheckBox *CheckBoxDE;
        TBooleanField *cat_a;
        TBooleanField *cat_b;
        TBooleanField *cat_c;
        TBooleanField *cat_d;
        TBooleanField *cat_e;
        TBooleanField *cat_be;
        TBooleanField *cat_ce;
        TBooleanField *cat_de;
        TFIBDateField *pFIBDataSetPeditDRIVER_LIC_DATE;
        TDBEdit *DBEditDriverLic;
        TLabel *Label7;
        TLabel *Label8;
        TDBEdit *DBEditDriverLicDate;
        void __fastcall FormActivate(TObject *Sender);
        void __fastcall Button1Click(TObject *Sender);
        void __fastcall DBEditFChange(TObject *Sender);
        void __fastcall DBEditIChange(TObject *Sender);
        void __fastcall DBEditOChange(TObject *Sender);
        void __fastcall Button2Click(TObject *Sender);
        void __fastcall CheckBoxAClick(TObject *Sender);
        void __fastcall pFIBDataSetPeditCalcFields(TDataSet *DataSet);

        void __fastcall CheckBoxBClick(TObject *Sender);
        void __fastcall CheckBoxCClick(TObject *Sender);
        void __fastcall CheckBoxDClick(TObject *Sender);
        void __fastcall CheckBoxEClick(TObject *Sender);
        void __fastcall CheckBoxBEClick(TObject *Sender);
        void __fastcall CheckBoxCEClick(TObject *Sender);
        void __fastcall CheckBoxDEClick(TObject *Sender);
        void __fastcall pFIBDataSetPeditID_TYPE_PERSONALChange(
          TField *Sender);
private:	// User declarations
public:		// User declarations
        __fastcall TFormEditPersonal(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TFormEditPersonal *FormEditPersonal;
//---------------------------------------------------------------------------
#endif
